<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Projects extends Model
{
    use HasFactory;

    protected $table = 'projects';
    protected $fillable = ['name', 'tag', 'desc', 'desc_en', 'address', 'address_en', 'introduction', "img_list", 'detail', 'name_en', 'tag_en', 'introduction_en', 'detail_en', 'product_id'];

    public function product()
    {
        return $this->hasOne(Products::class, "id", "product_id");
    }
}
